package cn.chinaflame.pagodas.entity;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 
 * @author pengcheng.zhao
 *
 */
@Entity
@Table(name = "pa_lights_log", schema = "pagoda", catalog = "")
public class PaLightsLog {
	
	private long id;
	private String method;//方法
	private String params;//入参参数
	private String createtime;//日志记录时间
	private String lightno;//操作灯号
	private int result;//日志结果
	private String ip;//ip
	private int state;//状态
	private String opsort;//操作分类
	private String message;//方法返回消息
    @Id
    @Column(name = "id", nullable = false, length = 20)
	public long getId() {
		return id;
	}
	public void setId(long id) {
		this.id = id;
	}
    @Basic
    @Column(name = "method", nullable = true, length = 200)
	public String getMethod() {
		return method;
	}
	public void setMethod(String method) {
		this.method = method;
	}
    @Basic
    @Column(name = "params", nullable = true, length = 1024)
	public String getParams() {
		return params;
	}
	public void setParams(String params) {
		this.params = params;
	}
    @Basic
    @Column(name = "createtime", nullable = true)
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
    @Basic
    @Column(name = "lightno", nullable = true, length = 200)
	public String getLightno() {
		return lightno;
	}
	public void setLightno(String lightno) {
		this.lightno = lightno;
	}
    @Basic
    @Column(name = "result")
	public int getResult() {
		return result;
	}
	public void setResult(int result) {
		this.result = result;
	}
    @Basic
    @Column(name = "ip", nullable = true, length = 256)
	public String getIp() {
		return ip;
	}
	public void setIp(String ip) {
		this.ip = ip;
	}
    @Basic
    @Column(name = "state")
	public int getState() {
		return state;
	}
	public void setState(int state) {
		this.state = state;
	}
    @Basic
    @Column(name = "opsort", nullable = true, length = 200)
	public String getOpsort() {
		return opsort;
	}
	public void setOpsort(String opsort) {
		this.opsort = opsort;
	}
    @Basic
    @Column(name = "message", nullable = true, length = 1024)
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	
	
	
}
